package org.yufan.core.result;

/**
 * Created by zxd on 2019/3/6
 **/
public enum  StatusCode {

    USERNAME_NOT_EMPTY(500001,"用户名不能为空"),
    IDS_NOT_EMPTY(500002,"id不能为空"),
    EXCEPTION(500000,"对不起,系统开小差了");


    private Integer code;
    private String message;

    StatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
